package com.archgeek.java.hashmap;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author pizhihui
 * @date 2023-04-21 10:53
 */
public class Demo {

    public static void main(String[] args) {


        ConcurrentHashMap map = new ConcurrentHashMap();
        map.put("1", "2");


        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put("1", "1");

        Map<String, String> stringStringMap = Collections.synchronizedMap(hashMap);


    }

}
